import request from '@/utils/request'

// 查询优惠券领取 列表
export function listEnvelope(query) {
  return request({
    url: '/system/envelope/list',
    method: 'get',
    params: query
  })
}

// 查询优惠券领取 详细
export function getEnvelope(id) {
  return request({
    url: '/system/envelope/' + id,
    method: 'get'
  })
}

// 新增优惠券领取 
export function addEnvelope(data) {
  return request({
    url: '/system/envelope',
    method: 'post',
    data: data
  })
}

// 修改优惠券领取 
export function updateEnvelope(data) {
  return request({
    url: '/system/envelope',
    method: 'put',
    data: data
  })
}

// 删除优惠券领取 
export function delEnvelope(id) {
  return request({
    url: '/system/envelope/' + id,
    method: 'delete'
  })
}
